package com.wanlian.router.net.netty2.msg.Device;

import com.wanlian.router.net.netty2.msg.Device.model.DymacIpInfo;
import com.wanlian.router.utils.JsonStringUtil;
import com.wanlian.router.net.netty2.msg.BaseMsg;
import com.wanlian.router.net.netty2.msg.MsgType;

/**
 * 动态ip设置
 */
public class DymaicIpInfoReq extends BaseMsg {

    private DymacIpInfo dymacIpInfo;

    public DymaicIpInfoReq() {
        super();
        this.setType(MsgType.DEVICE_NET_DYMIC_SET);
    }

    public DymacIpInfo getDymacIpInfo() {
        return dymacIpInfo;
    }

    public void setDymacIpInfo(DymacIpInfo dymacIpInfo) {
        this.dymacIpInfo = dymacIpInfo;
        this.setContent(JsonStringUtil.writeValueAsString(dymacIpInfo));
    }


}
